import request from '../utils/request'
const prefix = '/user';

const loginApi = (params) => {
    return request({
        url: `${prefix}/login`,
        method: 'POST',
        data: params
    })
}
const resetName = (params) => {
    return request({
        url: `${prefix}/resetName`,
        method: 'POST',
        data: params
    })
}

const resetPassword = (params) => {
    return request({
        url: `${prefix}/retsetPassword`,
        method: 'POST',
        data: params
    })
}

export {
    loginApi,
    resetName,
    resetPassword
}